#include <fstream>

long long gcd(long long x, long long y)
{
   if (y == 0)
	   return x;
   else
      return (gcd(y, x % y));
}


long long extended_gcd(long long a, long long b, long long& x, long long& y)
{
   if (a == 0)
   {
      x = 0;
	  y = 1;
	  return b;
   }
   long long x1, y1;
   long long d = extended_gcd(b % a, a, x1, y1);
   x =  y1 - (b / a) * x1;
   y = x1;
   return d;
}

int main()
{
   std::ifstream input("in.txt");
   std::ofstream output("out.txt");

   long long a, b, c;
   long long x, y;

   while (input >> a >> b >> c)
   {
	   if (b == 0)
	   {
		  if (a == 0)
			  if (c == 0)
				 output << "0 0" << "\n";
			  else
				 output <<"<none>" << "\n";
		  else
			  if (c % a == 0)
				 output << c / a << " " << 0 << "\n";
			  else
	             output << "<none>" << "\n";
		  continue;
	   }
	   long long d = gcd(a, b);
	   if (c % d != 0)
	      output << "<none>" << "\n";
	   else
	   {
		   extended_gcd(a / d, b / d, x, y);
		   output << x * (c / d) << " " << y * (c / d) << "\n";
	    }
   }

   return 0;
}